var formValidator = function() {
	var rules = {
		title : {
			required : true,
			maxlength : 32
		},
		theme : {
			required : true,
			maxlength : 64
		}
	};

	var messages = {
		title : {
			required : "名称不能为空",
			maxlength : "名称不能超过32个字"
		}, 
		theme : {
			required : "主题不能为空",
			maxlength : "主题不能超过64个字"
		}
	};

	return {
		init : function() {
			validator(rules, messages).init();
		}
	};
}();
